<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.min.js"></script>

<style>
    .button{
        background: #f0ad4e;padding: 2px 10px;border-radius: 3px;color: #fff;
    }
</style>
<div class="ncenter_box">
<div class="accounttitle"><h1>已开通会员 </h1></div>
<table width="100%" class="tab3" border="0" cellpadding="3" cellspacing="1" id="tb1" bgcolor="#b9c8d0">
	<thead>
    <tr align="center">
        <th><span>会员编号</span></th>
        <th><span>姓 名</span></th>
        <th><span>联系电话</span></th>
        <!--<th><span>QQ</span></th>-->
        <!--<th><span>注册时间</span></th>-->
        <th><span>开通时间</span></th>
        <!--<th><span>投资单数</span></th>-->
        <th><span>注册金额</span></th>
        <th><span>状态</span></th>
    </tr>
    </thead>
    <volist name="list" id="vo">
    <tr align="center">
        <td><!--<a href="__URL__/menberData/bj_id/{$vo['id']}/eth/menber" title="详细资料">-->{$vo['user_id']}</a></td>
        <td>{$vo['user_tel']}</td>
        <td>{$vo['user_name']}</td>
        <!--<td>{$vo['qq']}</td>-->
        <!--<td>{$vo.rdt|date='Y-m-d H:i:s',###}</td>-->
        <td>{$vo.pdt|date='Y-m-d H:i:s',###}</td>
        <!--<td>{$vo['f4']}</td>-->
        <!--<td>{$vo["u_level"]+1}</td>-->
        <td>{$vo['cpzj']}</td>
        <td><eq name="vo['is_pay']" value='0'><span style="color: #FF0000;">未开通</span><else />已开通</eq></td>
    </tr>
    </volist>
</table>
<table width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">
    <tr>
        <td align="center">{$page}</td>
    </tr>
</table>
<table width="600" align="center">
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
    <td align="center"><form method='post' action="__URL__/menberok/">搜索会员：<input type="text" name="UserID" title="帐号查询">
    <input type="submit" name="Submit" value="查询"  class="bt_tj button"/>
    </form></td>
    </tr>
</table>

    <div style="display: none">
    <div class="accounttitle"><h1>我的子账号 </h1></div>
    <table width="100%" class="tab3" border="0" cellpadding="3" cellspacing="1" id="tb1" bgcolor="#b9c8d0">
        <thead>
        <tr align="center">
            <th><span>会员编号</span></th>
            <th><span>开户姓名</span></th>
            <th><span>联系电话</span></th>
            <!--<th><span>QQ</span></th>-->
            <th><span>注册时间</span></th>
            <th><span>开通时间</span></th>
            <th><span>加盟级别</span></th>
            <th><span>分红天数</span></th>
            <th><span>注册金额</span></th>
            <th><span>奖金积分</span></th>
            <th><span>状态</span></th>
        </tr>
        </thead>
        <volist name="wrs" id="vo">
            <tr align="center">
                <td><!--<a href="__URL__/menberData/bj_id/{$vo['id']}/eth/menber" title="详细资料">-->{$vo['user_id']}</a></td>
                <td>{$vo['user_name']}</td>
                <td>{$vo['user_tel']}</td>
                <!--<td>{$vo['qq']}</td>-->
                <td>{$vo.rdt|date='Y-m-d H:i:s',###}</td>
                <td>{$vo.pdt|date='Y-m-d H:i:s',###}</td>
                <td>{$vo['f4']}</td>
                <td>{$vo["fanli_money"]/1}</td>
                <td>{$vo['cpzj']}</td>
                <td>{$vo['agent_use']}</td>
                <td><eq name="vo['is_pay']" value='0'><span style="color: #FF0000;">未开通</span><else />已开通</eq></td>
            </tr>
        </volist>
    </table>
    <table  width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">
        <tr>
            <td align="center"><button id='laqu' onclick="javascript:laqu();">拉取子账号奖金积分</button></td>
            <td align="center">{$page1}</td>
        </tr>
    </table>
    </div>

</div>

<include file="Public:footer" />

<script>new TableSorter("tb1");</script>
<script>
    $('#laqu').click(function(){
        if(confirm('是否立即拉取子账号积分？注意：如何有任何一个子账号与主账号二级密码不同，这次提现是失败的！')){
            $.post('__URL__/laqu',{'id':0},function (data) {
                    if(data=='passopen'){
                        alert('提现失败！请检查子账号二级密码！');
                        window.location.href="__URL__/cody/c_id/3";
                    }else{
                        alert(data);
                        window.location.href="__URL__/cody/c_id/3";
                    }
            });
        }
    });
</script>